// index.js
// 获取应用实例
import {Request} from "./../../utils/request"
const app = getApp()
console.log(app.globalData);
Page({
  data: {
   
  },
  scan(){
    if(app.globalData.userInfo){
      wx.reLaunch({
        url: '/pages/home/index',
      })
    }else{
      wx.navigateTo({
        url: '/pages/login/index',
      })
    }
  },
  onLoad() {
    
    
  },
  onShow(){
    if(app.globalData.userInfo){
      wx.reLaunch({
        url: '/pages/home/index',
      })
    }
  }
  
})
